package com.soccertgc.core.game.events 
{
	
	import com.soccertgc.core.game.Game;
	import com.soccertgc.core.game.GameFormation;
	import com.soccertgc.core.game.GamePhase;
	
	public class GameResolveSubstitutionPhaseEvent extends GamePhaseEvent
	{
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _playerFormation:GameFormation;
		private var _opponentFormation:GameFormation;

		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		/**
		 * Creates a new GameResolvePhaseEvent 
		 * @param g Game that dispatch the event
		 * @param gTurn Data and list of the effectes caused by the turn resolution
		 */		
		public function GameResolveSubstitutionPhaseEvent(g:Game, playerFormation:GameFormation, opponentFormation:GameFormation)
		{
			super(GameEvent.EVENT_GAME_RESOLVE_SUBSTITUTION_PHASE, g, GamePhase.RESOLVE_SUBSTITUTE);
			// Init
			_playerFormation	= playerFormation;
			_opponentFormation	= opponentFormation;
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------

		public function get playerFormation():GameFormation
		{
			return _playerFormation;
		}

		public function get opponentFormation():GameFormation
		{
			return _opponentFormation;
		}


	}
}